<template>
  <div class="box">
    <img src="../../assets/images/error_images/404.png" alt="" srcset="" />
    <el-button type="primary" small="default" @click="goHome">首页</el-button>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'
let $router = useRouter()
const goHome = () => {
  $router.push('/home')
}
</script>

<style lang="scss" scoped>
.box {
  width: 100vw;
  height: 100vh;
  background-color: yellowgreen;
  display: flex;
  justify-content: center;
  img {
    width: 800px;
    height: 400px;
  }
}
</style>
